package com.fgxia.driver.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * driving license bo
 *
 * @author yyt
 */
@Data
public class DrivingLicenseBo implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    /**
     * 车牌颜色
     */
    @NotBlank(message = "车牌颜色不能为空", groups = { AddGroup.class, EditGroup.class })
    private String licencePlateColor;

    /**
     * 车牌号码
     */
    @NotBlank(message = "车牌号码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String licencePlateNumber;

    /**
     * 车辆注册日期
     */
    @NotBlank(message = "车辆注册日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private String licencePlateDate;

    /**
     * 证件照(01正面)
     */
    @NotBlank(message = "证件照(01正面)不能为空", groups = { AddGroup.class, EditGroup.class })
    private String url01;

    /**
     * 证件照(02反面)
     */
    @NotBlank(message = "证件照(02反面)不能为空", groups = { AddGroup.class, EditGroup.class })
    private String url02;

    /**
     * 车辆照(03正面)
     */
    @NotBlank(message = "车辆照(03正面)不能为空", groups = { AddGroup.class, EditGroup.class })
    private String url03;

    /**
     * 车辆照(04侧面)
     */
    @NotBlank(message = "车辆照(04侧面)不能为空", groups = { AddGroup.class, EditGroup.class })
    private String url04;

    /**
     * 车辆照(05后面)
     */
    @NotBlank(message = "车辆照(05后面)不能为空", groups = { AddGroup.class, EditGroup.class })
    private String url05;

    /**
     * 其他参数
     */
    @NotBlank(message = "其他参数不能为空", groups = { AddGroup.class, EditGroup.class })
    private String elseParams;

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    @NotNull(message = "删除标志（0代表存在 1代表删除）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer isDeleted;
}
